home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / plotting / contour / contour.lha / Contour / README.INSTALL < prev    next >
Encoding:
Text File  |  1990-09-10  |  1.6 KB  |  55 lines

  1. Contour has routines for displaying graphics plots on
  2. X10 or X11.  There are several ways of compiling
  3. this program, depending on machine type.
  4.  
  5. 1) The easist way of compiling is to use imakefiles and xmkmf
  6.    
  7.        To compile the program with X11 graphics :
  8.        % xmkmf
  9.        % make
  10.  
  11.  
  12. 2) If xmkmf does not exist, then use an ordinary make.
  13.    There are 2 different makefiles
  14.    (A) Makefile.X11  
  15.        This compiles with X11 graphics
  16.        % make -f Makefile.X11
  17.  
  18.        Note : To compile with X10 graphics :
  19.           Modify Makefile.X11 so that the line 
  20.           "all: contourX11" reads "all: contourX10"
  21.           Then
  22.           % make -f Makefile.X11
  23.  
  24.    (B) Makefile.orig
  25.        This produces binaries with X10 and X11 graphics.
  26.  
  27.        To do everything
  28.        % make -f Makefile.orig
  29.        This produces "contourX10" and "contourX11".
  30.  
  31. 3) If the X11 libraries are not in /usr/include, then the
  32.    makefiles need to be modified.
  33.  
  34. 4) Questions to 
  35.    ktoh@mascot.berkeley.edu
  36.  
  37. System Dependencies :
  38. --------------------
  39.  
  40. In the Makefiles, the "install" command assumes
  41. the X-binaries are in /usr/X11/... ('cos that's where everything is on my
  42. system!).  These should be modified.
  43.  
  44. Also, the printer in main.c should be changed so that the default printer
  45. is recognized by your system.  This is not really necessary if the PRINTER
  46. environment variable is set correctly (see pdraw.man)
  47.  
  48.    /* printer type */
  49.    if ((ptr = getenv("PRINTER")) == NULL)
  50. >     strcpy(printer,"-Plp550M");
  51.    else
  52.       sprintf(printer,"-P%s",ptr);
  53.    fprintf(stdout,"   Default Printer           = %s\n",printer);
  54.  
  55.